//
//  HTGroupWebViewController.m
//  HeartTravel
//
//  Created by lanou on 15/10/26.
//  Copyright © 2015年 tantan. All rights reserved.
//

#import "HTGroupWebViewController.h"

@interface HTGroupWebViewController ()

@end

@implementation HTGroupWebViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.topView.backgroundColor = [UIColor colorWithRed:0.506 green:0.793 blue:0.759 alpha:1.000];
    [self.leftButton setBackgroundImage:[UIImage imageNamed:@"nav_index_sel"] forState:(UIControlStateNormal)];
    [self.leftButton addTarget:self action:@selector(didClickBack) forControlEvents:(UIControlEventTouchUpInside)];
    
    UIWebView *webView = [[UIWebView alloc]initWithFrame:CGRectMake(0, 70, SCREEN_WIDTH, SCREEN_HEIGHT - 70)];
    NSString *HTMLString = [@"http://www.daizhe.cn/share/detail/id/" stringByAppendingString:self.share_id];
    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:HTMLString]];
    [webView loadRequest:request];
    [self.view addSubview:webView];
}

- (void)didClickBack
{
    [self.navigationController popViewControllerAnimated:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
